import style from './style.css';
import React from 'react';
export default (props)=>{
    let mystyle = {};
    if(props.style){
        mystyle = {...props.style};
    }
    if(props.title){
        mystyle.paddingTop = '25px';
    }
    if(!props.border){
        mystyle.border = 'none';
        mystyle.boxShadow = 'none';
        mystyle.background = 'none';
    }
    return(
        <div className = {style.block} style = {mystyle}>
        {
            props.title && (
                <div className = {style.title}><span style = {{marginLeft:'10px'}}>{props.title}</span></div>
            )
        }
        {
            props.children || null
        }
        </div>
    )
}